package cn.edu.sjtu.se.peakfactory.service.interfaces;

import java.util.List;

import cn.edu.sjtu.se.peakfactory.service.bean.ElementVB;
import cn.edu.sjtu.se.peakfactory.service.bean.UserElementVB;

public interface ElementService {
	public UserElementVB getUserElementById(Long userId, Long elementId);

	public List<UserElementVB> getUserElementByUserId(Long userId);

	public void useElementWithAmount(Long userId, Long elementId, int amount);

	public void addElementWithAmount(Long userId, Long elementId, int amount);
	
	public List<ElementVB> searchElementByName(String elementName);
}
